testtreelistmodel: Don't use non-standard function
authorDaniel Boles <dboles.src@gmail.com>
Wed, 24 Oct 2018 18:48:45 +0000 (19:48 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Wed, 7 Nov 2018 20:32:55 +0000 (20:32 +0000)
as per efd3758f6a779041ff552cb4c5163446fd951368 strcasecmp() is not a C
standard thing (not that we bothered including any header for it anyway)
and so this test failed to build on Windows with Microsoft Visual C.

tests/testtreelistmodel.c

index ad9f0f4c59ef72089ae08b52e6097b4529a2e19f..88f219797bc35ca4aafda08ae66cd1040ff0cfbe 100644 (file)
@@ -131,7 +131,7 @@ compare_files (gconstpointer first,
   first_path = g_file_get_path (first_file);
   second_path = g_file_get_path (second_file);
 
-  result = strcasecmp (first_path, second_path);
+  result = g_ascii_strcasecmp (first_path, second_path);
 
   g_free (first_path);
   g_free (second_path);